<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>密码重置成功</title>
    <link rel="stylesheet" href="../css/success.css" type="text/css">
    <style>
        .success-message {
            background-color: #e8f5e9;
            color: #2e7d32;
            padding: 30px;
            margin: 20px 0;
            border-radius: 8px;
            border: 2px solid #4caf50;
            text-align: center;
        }
        .success-message h2 {
            margin: 0 0 15px 0;
            color: #2e7d32;
        }
        .success-message p {
            margin: 10px 0;
            font-size: 16px;
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="success-message">
            <h2>✓ 密码重置成功</h2>
            <% if (request.getAttribute("successMessage") != null) { %>
                <p><%= request.getAttribute("successMessage") %></p>
            <% } else { %>
                <p>您的密码已成功重置！</p>
                <p>请使用新密码登录。</p>
            <% } %>
        </div>
        
        <div style="text-align: center; margin-top: 30px;">
            <a href="login.jsp" class="btn" style="display: inline-block; padding: 12px 40px; font-size: 16px;">立即登录</a>
        </div>
    </div>
</body>
</html>

